package com.kzj;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@ServletComponentScan
@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true)//暴露代理对象，需要导包org.aspectj.aspectjweaver
@Slf4j
@EnableScheduling//开启定时任务
public class Application {
    @Autowired

    public static void main(String[] args) {
        SpringApplication.run(Application.class);

        log.info("启动完成");
    }
}
